LEGAL NOTICE - AVISO LEGAL
*************************************************************

 Author: reflex-ocasion
 reflex.ocasion@yahoo.es
 www.reflex-ocasion.com.es

*************************************************************
Spanish law requires that all commercial email containing the text "This message is intended solely for the addressee ...."

These are the steps for inclusion in the order confirmation email at the email that was sent to the client when you are informed that your request has been sent and email in the new state when we edit it for some reason in order editor (http://www.oscommerce.com/community/contributions,1435). In other editors order the steps are very similar.

Do not add or modify the database, only 4-7-10 files are modified.

 - catalog/checkout_process.php
 - catalog/includes/languages/english/checkout_process.php
 - catalog/admin/orders.php
 - Catalog/admin/languages/english/orders.php

Only if the contribution order_editor is installed
 - catalog/admin/edit_orders.php
 - catalog/admin/edit_orders_ajax.php
 - catalog/admin/languages/english/edit_orders.php

Only if the contribution paypal_ipn is installed
 - catalog/includes/modules/payment/paypal_standar.php
 - catalog/ext/modules/payment/paypal_ipn/ipn.php
 - catalog/includes/languages/english/modules/payment/paypal_ipn

*************************************************************
1 - catalog/checkout_process.php

  * Seek

  tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

  * Add this before

  $email_order .= EMAIL_SEPARATOR . "\n" .
                  EMAIL_TEXT_INFO_LEGAL . "\n\n";

*************************************************************
2 - catalog/includes/languages/english/checkout_process.php (translate to other languages that have)

  * Add before ?> Last

define('EMAIL_TEXT_INFO_LEGAL', '<B><U>LEGAL NOTICE</U></B>
<P>This message is intended solely for the addressee and may contain privileged or confidential information. If you are not the addressee indicated, is informed that the use, disclosure and / or copying without permission is prohibited under current legislation. If you have received this message in error, please let us know immediately by the same route and arrange for its destruction.</P>
<P>Before printing this message, make sure it's necessary. Join our commitment to environmental conservation.</P>');

*************************************************************
3 - catalog/admin/orders.php

  * Seek

            $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

  * Replace with this

            $email = STORE_NAME . "\n" .
                     EMAIL_SEPARATOR . "\n" .
                     EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" .
                     EMAIL_TEXT_INVOICE_URL . ' ' . '<a href="' .  tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . '">' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . '</a>' . "\n" .
                     EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" .
            $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . "\n\n";
	
            $email .= EMAIL_SEPARATOR . "\n" .
                      EMAIL_TEXT_INFO_LEGAL . "\n\n";

*************************************************************
4 - Catalog/admin/languages/english/orders.php (translate to other languages that have)

  * Add before ?> Last

define('EMAIL_TEXT_INFO_LEGAL', '<B><U>LEGAL NOTICE</U></B>
<P>This message is intended solely for the addressee and may contain privileged or confidential information. If you are not the addressee indicated, is informed that the use, disclosure and / or copying without permission is prohibited under current legislation. If you have received this message in error, please let us know immediately by the same route and arrange for its destruction.</P>
<P>Before printing this message, make sure it's necessary. Join our commitment to environmental conservation.</P>');

*************************************************************

Only if the contribution order_editor is installed (http://www.oscommerce.com/community/contributions,1435)

*************************************************************
5 - catalog/admin/edit_orders.php

  * Seek

                                           EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE2);

  * Replace with this

                                           EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE2) . "\n" .
                                           EMAIL_SEPARATOR . "\n" .
                                           EMAIL_TEXT_INFO_LEGAL . "\n\n";

  * Seek

            $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
                            EMAIL_SEPARATOR . "\n";
            $email_order .= $order->info['payment_method'] . "\n\n";

  * Then add this

        $email_order .= EMAIL_SEPARATOR . "\n" .
                        EMAIL_TEXT_INFO_LEGAL . "\n\n";

*************************************************************
6 - catalog/admin/edit_orders_ajax.php

  * Seek

            $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . 
                            EMAIL_SEPARATOR . "\n";
            $email_order .= $order->info['payment_method'] . "\n\n";

  * Then add this

        $email_order .= EMAIL_SEPARATOR . "\n" .
                        EMAIL_TEXT_INFO_LEGAL . "\n\n";

*************************************************************
7 - catalog/admin/languages/english/edit_orders.php (translate to other languages that have)

  * Add before ?> Last

define('EMAIL_TEXT_INFO_LEGAL', '<B><U>LEGAL NOTICE</U></B>
<P>This message is intended solely for the addressee and may contain privileged or confidential information. If you are not the addressee indicated, is informed that the use, disclosure and / or copying without permission is prohibited under current legislation. If you have received this message in error, please let us know immediately by the same route and arrange for its destruction.</P>
<P>Before printing this message, make sure it's necessary. Join our commitment to environmental conservation.</P>');

*************************************************************

Only if the contribution paypal_ipn is installed (http://www.oscommerce.com/community/contributions,2679)

The truth is that this part if not needed

*************************************************************
8 - catalog/includes/modules/payment/paypal_standar.php

  * Seek

      tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

  * Add this before

      $email_order .= EMAIL_SEPARATOR . "\n" .
                      EMAIL_TEXT_INFO_LEGAL . "\n\n";

*************************************************************
9 - catalog/ext/modules/payment/paypal_ipn/ipn.php

  * Seek

          tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

  * Add this before

      $email_order .= EMAIL_SEPARATOR . "\n" .
                      EMAIL_TEXT_INFO_LEGAL . "\n\n";

*************************************************************
10 - catalog/includes/languages/english/modules/payment/paypal_ipn (translate to other languages that have)

   * Add before ?> Last

define('EMAIL_TEXT_INFO_LEGAL', '<B><U>LEGAL NOTICE</U></B>
<P>This message is intended solely for the addressee and may contain privileged or confidential information. If you are not the addressee indicated, is informed that the use, disclosure and / or copying without permission is prohibited under current legislation. If you have received this message in error, please let us know immediately by the same route and arrange for its destruction.</P>
<P>Before printing this message, make sure it's necessary. Join our commitment to environmental conservation.</P>');

*************************************************************

That's it!